package com.wsz.eduservice.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wsz.eduservice.pojo.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wsz.eduservice.pojo.frontvo.CourseWebVo;
import com.wsz.eduservice.pojo.vo.CoursePublic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author wangs
* @description 针对表【edu_course(课程)】的数据库操作Mapper
* @createDate 2022-09-24 19:04:34
* @Entity com.wsz.eduservice.pojo.Course
*/
public interface CourseMapper extends BaseMapper<Course> {
    public CoursePublic getPublishCourseInfo(@Param("courseId") String courseId);
    public Page<CoursePublic> getCoursePublicPage(@Param("page") Page<CoursePublic> page,
                                                   @Param("title") String title,
                                                   @Param("teacherName") String teacherName,
                                                   @Param("lessonNum") Integer lessonNum,
                                                   @Param("subjectLevelOne") String subjectLevelOne,
                                                   @Param("subjectLevelTwo") String  subjectLevelTwo);

    List<CoursePublic> getCoursePublicAll();

    CourseWebVo getBaseCourseInfo(@Param("courseId") String courseId);
}




